package com.hkbigdata.sybx.mapper;

import com.hkbigdata.sybx.bean.Policy;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author liuanbo
 * @creat 2025-06-03-15:18
 * @see 2194550857@qq.com
 */
@Mapper
public interface PolicyMapper {
//    @Select("select * from policy")
    @Select("select title as title, department as department, " +
            "release_date as releaseDate, content as content, " +
            "browse_count as browseCount from policy;\n")
    List<Policy> selectAll();
}
